package com.wei.wiki.service.impl;

import com.wei.wiki.mapper.EbookSnapshotInfoMapper;
import com.wei.wiki.resp.StatisticResp;
import com.wei.wiki.service.EbookSnapshotService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/*
 * @author : ShunWei
 * @date : 2022/1/31 11:24
 * @Description:
 */
@Service
public class EbookSnapshotServiceImpl implements EbookSnapshotService {
    @Resource
    private EbookSnapshotInfoMapper ebookSnapshotInfoMapper;

    @Override
    public void genSnapshot() {
        ebookSnapshotInfoMapper.genSnapshot();
    }

    @Override
    public List<StatisticResp> getStatistic() {
        return ebookSnapshotInfoMapper.getStatistic();
    }

    @Override
    public List<StatisticResp> get30Statistic() {
        return ebookSnapshotInfoMapper.get30Statistic();
    }
}
